package com.sxbbc.common.core.mapper.jz;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxbbc.common.core.entity.jz.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoky
 * @since 2019-05-10
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    /**
     * 根据cid查询用户购买最多的二级分类
     * @param cid 用户id
     * @author leehao
     * @return java.lang.Integer
     */
    Integer getMaxNumSecondIdByCid(@Param("cid") Integer cid);

    List<OrderDetail> getListOrderDetails(@Param("orderCode")String orderCode);
}
